package com.goldcontrol.cloudweb.mapper;

import com.goldcontrol.cloudweb.model.JobEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@Mapper
public interface ScheduledMapper {

    Integer insert(JobEntity jobEntity);

    Integer update(JobEntity jobEntity);

    Integer updateProjectStatus(Map<String,Object> map);

    List<JobEntity> selectJobByFields(Map<String, Object> map);

    JobEntity selectJob(@Param("projectId") Integer projectId,@Param("state") Integer state);

}
